<script type="text/javascript">
    $(document).ready(
    	function()
    	{
            $("a").click(
                function() {
                    if ($(this).attr("name") == "german_tagalog") {

                        var $dictionary = new RockitJS.Model.Database.Dictionary();

                        $.getJSON(
                            'download-dictionary.php',
                             $dictionary.createTranslate
                        );
                        alert("Wörterbuch wurde geladen");
                    } else {

                        $("body").load("views/" + $(this).attr("name") + ".phtml");
                    }
                }
            );
		}
    );
</script>
<div id="header">
    <h1><a href="#" name="main">Wörterbuch laden</a></h1>
</div>
<div id="menu">
    <ul>
        <li><a href="#" name="german_tagalog">Deutsch - Tagalog</a></li>
    </ul>
</div>